package Day9.内部类.成员内部类;

/**
 * @Author kalista
 * @Description
 * @Date 2020/11/13  15:49
 **/
public class Outer3 {

    public static IAnimal getinnerInstance(String speak){
        return () -> System.out.println(speak);
    }

    public static void main(String[] args) {

        Outer3.getinnerInstance("小狗哇哇").speak();

    }

}
